package com.cw.java8.optional.demo;

/**
 * 用户Dao
 */
public class UserDao {

    /**
     * 模拟从数据库查询用户信息
     * @return
     */
    public User findUserById(Integer id) {
        User user =  User.Build()  // return new User();
                .setId(1)
                .setUserName("admin")
                .setPassWord("123456");

        return user;
    }
}
